package com.punai.standard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.standard.domain.StaFbFee;
import com.punai.standard.domain.template.StaFbFeeExcel;
import com.punai.standard.domain.vo.StaFeeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分包费用项Mapper接口
 *
 * @author zxw
 * @date 2022-12-13
 */
public interface StaFbFeeMapper extends BaseMapper<StaFbFee>
{
    /**
     * 查询分包费用项
     *
     * @param id 分包费用项主键
     * @return 分包费用项
     */
    public StaFbFee selectStaFbFeeById(@Param("versionId")String versionId, @Param("id")String id);

    /**
     * 查询分包费用项列表
     *
     * @param staFbFee 分包费用项
     * @return 分包费用项集合
     */
    public List<StaFbFee> selectStaFbFeeList(StaFbFee staFbFee);

    List<StaFbFeeExcel> selectExport(@Param("versionId") String versionId);


    /**
     * 删除分包费用项
     *
     * @param id 分包费用项主键
     * @return 结果
     */
    public int deleteStaFbFeeById(String id);

    /**
     * 批量删除分包费用项
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStaFbFeeByIds(String[] ids);

    public List<StaFbFee> queryContrast(@Param("versionId")String versionId, @Param("ids") String[] ids);

    public List<StaFbFee> selectStaGxFeeList(@Param("fee") StaFeeVo fee, @Param("versionId")String versionId, @Param("chapterIds")List<String> chapterIds);

}
